import tkinter as tk
window = tk.Tk()
window.title('my window')
window.geometry('400x400')

e = tk.Entry(window, show=None)  # show=None,输入框
e.pack()
var = e.get()


def insert_point():
    var = e.get()
    t.insert('insert', var)  # 输入指针在的地方


def insert_end():
    var = e.get()
    t.insert('end', var)  # 输入在最后面


b1 = tk.Button(window, text='insert point', width=15, height=2, command=insert_point)
b1.pack()
b2 = tk.Button(window, text='insert end', width=15, height=2, command=insert_end)  # 点击按钮
b2.pack()
t = tk.Text(window, height=2)  # 显示的空间
t.pack()
window.mainloop()